<%@page import="com.mmy.domain.restaurant.TRestaurantOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>订单退款</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>订单退款</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				<nav class="breadcrumb" >
				<a href="restaurantindex" >餐馆信息</a> | 
				<a href="restaurantplan" >餐馆计划</a>  
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
				</nav>
				
				<form action="subcancelorderrestaurant" method="post" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>订单退款
						</h4>
				<div >
				<table class="info-table" >
				
				<tr>
					<th>收据号</th>
					<td>
						<input type="hidden" name="RestaurantID"  value="${iRestaurantID}" >
						<input type="hidden" name="ID"  value="${tRestaurantOrder.getID()}" >
						<input type="text" name="Voucher" value="${tRestaurantOrder.getVoucher()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>实收款</th>
					<td>
						<input type="number" name="Receipt" value="${tRestaurantOrder.getReceipt()}" readonly/><span class="mustWrite">*</span>
					</td>
				</tr>
				
				<tr>
					<th>订单人姓名</th>
					<td>
						<input type="text" name="OrderName" value="${tRestaurantOrder.getOrderName()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>订单联系方式</th>
					<td>
						
						<input type="text" name="OrderTel" value="${tRestaurantOrder.getOrderTel()}" readonly/><span class="mustWrite">*</span>
					</td>
					
				</tr>
				
				<tr>
					<th>总额</th>
					<td>
						<input type="number" name="OrderAmount" value="${tRestaurantOrder.getOrderAmount()}" readonly/><span class="mustWrite">*</span>
					</td>
					<th>应收款</th>
					<td>
						<input type="number" name="Receivable" value="${tRestaurantOrder.getReceivable()}" readonly/><span class="mustWrite">*</span>
					</td>
					
				</tr>
				<tr>
					<th>退款金额</th>
					<td>
						<input type="text" name="Refund" required/><span class="mustWrite">*</span>
					</td>
					
					<th>付款类型</th>
					<c:choose>
						     <c:when test="${tRestaurantOrder.getPayType() == 0}">
						           <td>现金</td>
						     </c:when>
						     <c:when test="${tRestaurantOrder.getPayType() == 1}">
						           <td>微信</td>
						     </c:when>
						     <c:when test="${tRestaurantOrder.getPayType() == 2}">
						           <td>支付宝</td>
						     </c:when>
						    <c:otherwise>
						         <td>银联卡</td>
						    </c:otherwise>
					</c:choose>
				
				</tr>
				
					
				</table>
				<center>
				<input type="submit" class="btn" value="退款" onclick="location.href='printcancelrestaurant'"/>
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				
							
							
				</div>
				</form>
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>

</html>